using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Smg.Model
{
    public class Config
    {
        private static string strUrl="http://";
        private static string strConnectionString="";
        private static string strAccessPath = "";
        private static string strDataBaseHost = "";
        private static string strDataBaseName = "";
        private static string strDbUserName = "";
        private static string strDbPassWord = "";
        private static string strSql = "";
        private static string strUrlExpression = "";
        private static string strPriority = "0.5";
        private static string strDbType = "";
        private static string strProjectPath = "";
        private static string strChangeFreq = "never";

        private static DataTable dtSqlTemplaste = new DataTable();

        public Config()
        {
        }

        public static string ChangeFreq
        {
            get
            {
                return strChangeFreq;
            }
            set
            {
                strChangeFreq = value;
            }
        }

        public static string ProjectPath
        {
            get
            {
                return strProjectPath;
            }
            set
            {
                strProjectPath = value;
            }
        }

        public static string Url
        {
            get
            {
                return strUrl;
            }
            set
            {
                strUrl = value;
            }
        }

        public static string DbType
        {
            get
            {
                return strDbType;
            }
            set
            {
                strDbType = value;
            }
        }

        public static string AccessPath
        {
            get
            {
                return strAccessPath;
            }
            set
            {
                strAccessPath = value;
            }
        }

        public static string ConnectionString
        {
            get
            {
                return strConnectionString;
            }
            set
            {
                strConnectionString = value;
            }
        }

        public static string DataBaseHost
        {
            get
            {
                return strDataBaseHost;
            }
            set
            {
                strDataBaseHost = value;
            }
        }

        public static string DataBaseName
        {
            get
            {
                return strDataBaseName;
            }
            set
            {
                strDataBaseName = value;
            }
        }

        public static string DbUserName
        {
            get
            {
                return strDbUserName;
            }
            set
            {
                strDbUserName = value;
            }
        }

        public static string DbPassWord
        {
            get
            {
                return strDbPassWord;
            }
            set
            {
                strDbPassWord = value;
            }
        }

        public static string Sql
        {
            get
            {
                return strSql;
            }
            set
            {
                strSql = value;
            }
        }

        public static string UrlExpression
        {
            get
            {
                return strUrlExpression;
            }
            set
            {
                strUrlExpression = value;
            }
        }

        public static string Priority
        {
            get
            {
                return strPriority;
            }
            set
            {
                strPriority = value;
            }
        }

        public static DataTable SqlTemplateTab
        {
            get
            {
                return dtSqlTemplaste;
            }
            set
            {
                dtSqlTemplaste = value;
            }
        }
    }
}
